package book;

public class PairOfUidAndBookId {
    private int userID;
    private int bookID;

    public PairOfUidAndBookId(){

    }

    public PairOfUidAndBookId(int userID, int bookID) {
        this.userID = userID;
        this.bookID = bookID;
    }

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public int getBookID() {
        return bookID;
    }

    public void setBookID(int bookID) {
        this.bookID = bookID;
    }

    public String toJson() {
        StringBuilder json = new StringBuilder();
        json.append(userID).append(",");
        json.append(bookID);
        return json.toString();
    }
}
